define([],function(){
	var tpl = {};

	tpl.scheme = function(){
		return scheme();
	}
	tpl.sidebar = function(){
		return sidebar();
	}
	tpl.title = function(){
		return title();
	}
	tpl.info = function(){
		return info();
	}
	tpl.table = function(){
		return table();
	}
	tpl.contextmenu = function(){
		return contextmenu();
	}
	tpl.batchModify = function(){
		return batchModify();
	}
	tpl.recordModify = function(){
		return recordModify();
	}
	tpl.medicineList = function(){
		return medicineList();
	}
	tpl.add = function() {
        return add();
    }
    tpl.smallClass = function() {
        return smallClass();
    }
    tpl.stopSchemeReason = function(){
    	return stopSchemeReason();
    }
    tpl.medicationRecord = function(){
    	return medicationRecord();
    }
    tpl.remark = function(){
    	return remark();
    }
    tpl.statistics = function(){
    	return statistics();
    }
    tpl.selectCallBack = function() {
        return selectCallBack();
    }

	var scheme = function(){
		return 	'<script id="tpl_specialtyBags_scheme" type="text/html">'+
				'	<div class="specialtyBags-scheme clearfix">'+
				'		{{each list as value i}}'+
				'			<div class="item">{{value.schemeName}}（{{if value.status=="0"}}正常{{else if value.status=="01"}}已完成{{else if value.status=="02"}}复发失效{{else if value.status=="03"}}已终止{{/if}}）</div>'+
				'		{{/each}}'+
				'	</div>'+
				'</script>';
	}
	var sidebar = function(){
		return 	'<script id="tpl_specialtyBags_sidebar" type="text/html">'+
				'	<div class="stages-fold">治疗阶段疗程概况</div> '+
				'	<div class="stages-unfold"> '+
				'	    <div class="stages-unfold-tit"> '+
				'	     	<span class="stages-box-close">关闭</span> '+
				'	     	<span class="stages-unfold-name">治疗阶段疗程概况</span> '+
				'	    </div> '+
				'	    <div class="stages-unfold-con clearfix"> '+
				'	     	<div class="stages-list"> '+
				'	      		<ul>'+
				'					{{each list as stage i}}'+
				'	       				<li class="ellipsis-1" ptStageId="{{stage.ptStageId}}">{{stage.stageName}}</li> '+
				'					{{/each}}'+
				'	      		</ul> '+
				'	     	</div> '+
				'	     	<div class="course-list"> '+
				'	      		<ul> '+
				'					{{each list as stage i}}'+
				'	       				<li class="course-list-group"> '+
				'	       					<a class="ellipsis-1" href="#">{{stage.stageName}}</a> '+
				'		        			<ul>'+
				'								{{each stage.ptDisCoursePOs as course j}}'+
				'		         					<li class="ellipsis-1 {{if course.dealStatus=="01"}}finished{{/if}}" ptStageId="{{stage.ptStageId}}">{{course.courseName}}</li> '+
				'								{{/each}}'+
				'		        			</ul>'+
				'		        		</li> '+
				'					{{/each}}'+
				'	     		</ul> '+
				'	     	</div> '+
				'	    </div> '+
				'	</div>'+
				'</script>';
	}
	var title = function(){
		return 	'<script id="tpl_specialtyBags_title" type="text/html">'+
				'	<span>{{stageName}}</span>'+
				'	<i>></i>'+
				'	<span class="color-orangle">{{courseName}}</span>'+
				'</script>';
	}
	var info = function(){
		return 	'<script id="tpl_specialtyBags_info" type="text/html">'+
				'	<font class="pr2rem">姓名：{{info.userName}}</font>'+
				'	<font class="pr2rem">门诊号：{{info.hisNo}}</font>'+
				'	<font class="pr2rem">性别：{{if info.gender=="M"}}男{{else if info.gender=="F"}}女{{else}}未知{{/if}}</font>'+
				'	<font class="pr2rem">年龄：{{info.age}}</font>'+
				/*'	<font>分组</font>'+
				'	<select id="groupType" class="random-group">'+
				'		<option value="00" {{if currCourse.groupValue=="00"}}selected{{/if}}>不随机</option>'+
				'		<option value="01" {{if currCourse.groupValue=="01"}}selected{{/if}}>随机A</option>'+
				'		<option value="02" {{if currCourse.groupValue=="02"}}selected{{/if}}>随机B</option>'+
				'		<option value="03" {{if currCourse.groupValue=="03"}}selected{{/if}}>随机D</option>'+
				'		<option value="04" {{if currCourse.groupValue=="04"}}selected{{/if}}>随机I</option>'+
				'	</select>'+*/
				'	<div class="health">'+
				'		<label><font>身高(cm)：</font><input class="input" id="height" placeholder="cm" value="{{currCourse.courseHeight}}"></label>'+
				'		<label><font>体重(kg)：</font><input class="input" id="weight" placeholder="kg" value="{{currCourse.courseWeight}}"></label>'+
				'		<label><font>体表面积(m2)：</font><input class="input" id="area" placeholder="m2" value="{{currCourse.surfaceArea}}"></label>'+
				'	</div>'+
				'</script>';
	}
	var table = function(){
		return 	'<script id="tpl_specialtyBags_table" type="text/html">'+
				'	<table class="specialtyBags-table table table-bordered table-condensed">'+
				'		<thead>'+
				'			<tr>'+
				'				<th rowspan="2">天数</th>'+
				'				<th rowspan="2">日期</th>'+
				'				{{if courseMedicine.length > 0}}'+
				'					<th colspan="{{courseMedicine.length}}">化疗药物及剂量</th>'+
				'				{{/if}}'+
				'				{{if supplyMedicine.length > 0}}'+
				'					<th colspan="{{supplyMedicine.length}}">补充用药</th>'+
				'				{{/if}}'+
				'				<th colspan="4">血常规</th>'+
				// '				<th rowspan="2">肝肾检查</th>'+
				'				<th rowspan="2">体温</th>'+
				'				<th rowspan="2">备注</th>'+
				'			</tr>'+
				'			<tr>'+
				'				{{each courseMedicine as value i}}'+
				'					<th class="courseMedicine-head">{{value.medicineName}}<p>({{value.medUnitName}})<i class="fa fa-caret-down"></i></p></th>'+
				'				{{/each}}'+
				'				{{each supplyMedicine as value i}}'+
				'					<th class="supplyMedicine-head {{if value.status=="2"}}disabled{{/if}}" data-medicineId="{{value.medicineId}}">{{value.medicineName}}<p>({{value.medUnitName}})<i class="fa fa-caret-down"></i></p></th>'+
				'				{{/each}}'+
				'				<th>WBC</th>'+
				'				<th>ANC</th>'+
				'				<th>Hb</th>'+
				'				<th>Plt</th>'+
				'			</tr>'+
				'		</thead>'+
				'		<tbody>'+
				'			{{each days as day i}}'+
				'			<tr>'+
				'				<td class="add-row {{day.className}}"><font>{{day.seqDay}}</font></td>'+
				'				{{if i == 0}}'+
				'					<td class="{{day.className}}">'+
				'						<div class="input-group date datetimepicker" data-date="{{day.dealDate}}" data-date-format="yyyy-mm-dd" data-link-format="yyyy-mm-dd">' +
				'							<input id="firstDay" class="form-control" type="text" value="{{day.dealDate}}"> ' +
				'							<span class="input-group-addon">' +
				'								<span style="display:none;" class="glyphicon glyphicon-calendar"></span>' +
				'							</span>' +
				'						</div>'+
				'					</td>'+
				'				{{else}}'+
				'					<td class="specialtyBag-date {{day.className}}"><font>{{day.dealDate}}</font></td>'+
				'				{{/if}}'+
				'				{{each day.courseMedicine as value j}}'+
				'					<td class="medicine courseMedicine {{day.className}}" data-deValue="{{value.deValue}}" data-dealDate="{{day.dealDate}}" data-id="{{value.id}}" data-source="{{value.source}}" data-medicineId="{{value.medicineId}}" data-planId="{{value.planId}}" data-medicineName="{{value.medicineName}}" data-frequencyTime="{{value.frequencyTime}}" data-medUnitName="{{value.medUnitName}}">'+
				'						{{if value.value}}'+
				'							<font class="{{value.className}}">{{value.value}}</font>'+
				'							{{if value.dataSource == "1"}}'+
				'								<i class="fa fa-caret-up"></i>'+
				'							{{else if value.dataSource == "2"}}'+
				'								<i class="fa fa-circle style-07"></i>'+
				'							{{/if}}'+
				'						{{else}}'+
				'							{{if value.dataSource == "1"}}'+
				'								<i class="style-08">X &nbsp;</i>'+
				'							{{else}}'+
				'								<font>-</font>'+
				'							{{/if}}'+
				'						{{/if}}'+
				'					</td>'+
				'				{{/each}}'+
				'				{{each day.supplyMedicine as value j}}'+
				'					<td class="medicine supplyMedicine {{day.className}} {{if value.status=="2"}}disabled{{/if}}" data-deValue="{{value.deValue}}" data-dealDate="{{day.dealDate}}" data-id="{{value.id}}" data-source="{{value.source}}" data-medicineId="{{value.medicineId}}" data-planId="{{value.planId}}" data-medicineName="{{value.medicineName}}" data-frequencyTime="{{value.frequencyTime}}" data-medUnitName="{{value.medUnitName}}">'+
				'						{{if value.value}}'+
				'							<font class="{{value.className}}">{{value.value}}</font>'+
				'							{{if value.dataSource == "1"}}'+
				'								<i class="fa fa-caret-up"></i>'+
				'							{{else if value.dataSource == "2"}}'+
				'								<i class="fa fa-circle style-07"></i>'+
				'							{{/if}}'+
				'						{{else}}'+
				'							{{if value.dataSource == "1"}}'+
				'								<i class="style-08">X &nbsp;</i>'+
				'							{{else}}'+
				'								<font>-</font>'+
				'							{{/if}}'+
				'						{{/if}}'+
				'					</td>'+
				'				{{/each}}'+
				'				<td class="medicine courseMedicine {{day.className}}" data-medicineName="WBC" data-planId="{{ day.courseMedicine[0].planId }}" data-dealDate="{{day.dealDate}}" data-name="WBC"><font>{{if day.WBC}}{{day.WBC.deValue}}{{/if}}</font></td>'+
				'				<td class="medicine courseMedicine {{day.className}}" data-medicineName="ANC" data-planId="{{ day.courseMedicine[0].planId }}" data-dealDate="{{day.dealDate}}" data-name="ANC"><font>{{if day.ANC}}{{day.ANC.deValue}}{{/if}}</font></td>'+
				'				<td class="medicine courseMedicine {{day.className}}" data-medicineName="Hb" data-planId="{{ day.courseMedicine[0].planId }}" data-dealDate="{{day.dealDate}}" data-name="Hb"><font>{{if day.Hb}}{{day.Hb.deValue}}{{/if}}</font></td>'+
				'				<td class="medicine courseMedicine {{day.className}}" data-medicineName="Plt" data-planId="{{ day.courseMedicine[0].planId }}" data-dealDate="{{day.dealDate}}" data-name="Plt"><font>{{if day.Plt}}{{day.Plt.deValue}}{{/if}}</font></td>'+
				// '				<td class="medicine courseMedicine liver-kidney-check {{day.className}}"><font>{{if day.liverAndKidneyCheck}}{{day.liverAndKidneyCheck.deValue}}{{/if}}</font></td>'+
				'				<td class="medicine courseMedicine {{day.className}}" data-medicineName="体温" data-planId="{{ day.courseMedicine[0].planId }}" data-dealDate="{{day.dealDate}}" data-name="temperature"><font>{{if day.temperature}}{{day.temperature.deValue}}{{/if}}</font></td>'+
				'				<td class="remark {{day.className}}" data-dealDate="{{day.dealDate}}"><font>{{if day.remark}}{{day.remark.deValue}}{{/if}}</font></td>'+
				'			</tr>'+
				'			{{/each}}'+
				'		</tbody>'+
				'	</table>'+
				'</script>';
	}
	var contextmenu = function(){
		return  '<script id="tpl_specialtyBags_contextmenu" type="text/html">'+
				'	<ul class="dropdown-menu" role="menu">'+
				'		{{each list as value i}}'+
		        '			<li data-key="{{value.key}}"><a tabindex="-1" href="javascript:void(0);">{{value.text}}</a></li>'+
		        '		{{/each}}'+
		        '	</ul>'+
		        '</script>';
	}
	var batchModify = function(){
		return  '<script id="tpl_specialtyBags_batchModify" type="text/html">'+
				'	<div class="form-group">'+
				'		<input id="batchModifyInput" type="text" class="form-control">'+
				'	</div>'+
				'	<div class="text-right">'+
				'		<button type="button" class="btn btn-sm btn-default batchModify-confirm">确定</button>'+
				'		<button type="button" class="btn btn-sm btn-primary batchModify-cancel">取消</button>'+
				'	</div>'+
		        '</script>';
	}
	var recordModify = function(){
		return  '<script id="tpl_specialtyBags_recordModify" type="text/html">'+
				'	<div class="table-responsive">'+
				'		<table class="table table-bordered table-hover">'+
				'			<tr>'+
				'				<td>修改时间</td>'+
				'				<td>修改剂量</td>'+
				'				<td>修改原因</td>'+
				'			</tr>'+
				'			{{each list as value i}}'+
				'				<tr>'+
				'					<td>{{value.deal_date}}</td>'+
				'					<td>{{value.record_value}}</td>'+
				'					<td>{{value.record_note}}</td>'+
				'				</tr>'+
				'			{{/each}}'+
				'		</table>'+
				'	</div>'+
		        '</script>';
	}
	var medicineList = function(){
		return  '<script id="tpl_specialtyBags_medicineList" type="text/html">'+
				'	<div class="medicineList-modal">'+
				'		{{if list.length > 0}}'+
				'			<ul>'+
				'				{{each list as value i}}'+
				'					<li class="clearfix" data-medSkuId="{{value.id}}">'+
				'						<div>{{value.medicine_name}}</div>'+
				'						<div>{{value.frequency_day}}天{{value.frequency_time}}次</div>'+
				'						<div>{{value.medicine_dose}}{{value.unit_name}}</div>'+
				'						<div>'+
				'							<i class="fa fa-pencil-square-o edit"></i>'+
				'							<i class="fa fa-plus-circle apply"></i>'+
				'						</div>'+
				'					</li>'+
				'				{{/each}}'+
				'			</ul>'+
				'		{{else}}'+
				'			<div class="medicineList-null">暂无补充用药</div>'+
				'		{{/if}}'+
				'	</div>'+
		        '</script>';
	}
	var add = function() {
        return  '<script id="tpl_specialtyBags_add" type="text/html">' +
                '   <div class="courseEdit-modal">'+
                '       <div class="form-horizontal clearfix">'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label"><i class="no-null">*</i>药品名称</label>'+
                '              <div class="control-input position-relative">'+
                '                  <input type="text" class="form-control" id="medicineName" placeholder="请输入药品名称" value="{{medicine_name}}" {{if status=="update"}}readonly{{/if}}>'+
                '                  <div id="inputQuery" class="medicine-list"></div>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6">'+
                '              <label class="control-label"><i class="no-null">*</i>药品大类</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="classId" {{if status=="update"}}disabled{{/if}}>' +
                '                      {{each bigClass as value i}}' +
                '                          <option value="{{value.id}}" {{if value.id==class_id}}selected{{/if}}>{{value.className}}</option>' +
                '                      {{/each}}' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6 grid-label-7">'+
                '              <label class="control-label"><i class="no-null">*</i>药品小类</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="catalogId" {{if status=="update"}}disabled{{/if}}>' +
                '                      {{each smallClass as value i}}' +
                '                          <option value="{{value.id}}" {{if value.id==parentId}}selected{{/if}}>{{value.catalog_name}}</option>' +
                '                      {{/each}}' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6">'+
                '              <label class="control-label"><i class="no-null">*</i>服用周期</label>'+
                '              <div class="control-input frequency clearfix">'+
                '                  <input id="frequencyDay" type="number" min="0" value="{{frequency_day}}" placeholder="天"  class="form-control"><span>天</span>' +
                '                  <input id="frequencyTime" type="number" min="0" value="{{frequency_time}}" placeholder="次"  class="form-control"><span>次</span>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6 grid-label-7">'+
                '              <label class="control-label"><i class="no-null">*</i>计算方式</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="calcuMethod">' +
                '                      <option value="01" {{if calcu_method=="01"}}selected{{/if}}>体表面积</option>' +
                '                      <option value="02" {{if calcu_method=="02"}}selected{{/if}}>体重</option>' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6">'+
                '              <label class="control-label"><i class="no-null">*</i>药品剂量</label>'+
                '              <div class="control-input">'+
                '                  <input type="text" class="form-control" id="medicineDose" placeholder="请输入药品总剂量" value="{{medicine_dose}}">'+
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6 grid-label-7">'+
                '              <label class="control-label"><i class="no-null">*</i>药品剂量单位</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="medUnitId" {{if status=="update"}}disabled{{/if}}>' +
                '                      {{each units as value i}}' +
                '                          <option value="{{value.id}}" {{if med_unit_id==value.id}}selected{{/if}}>{{value.unit_name}}</option>' +
                '                      {{/each}}' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6">'+
                '              <label class="control-label"><i class="no-null">*</i>药品类型</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="medicineType" disabled>' +
                '                      <option value="2" {{if medicine_type=="2"}}selected{{/if}}>补充用药</option>' +
                '                      <option value="1" {{if medicine_type=="1"}}selected{{/if}}>正常用药</option>' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-6 col-md-6 grid-label-7">'+
                '              <label class="control-label">药品性状</label>'+
                '              <div class="control-input">'+
                '                  <input type="text" class="form-control" id="character" value="{{character}}" {{if status=="update"}}readonly{{/if}}>'+
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label">适用症</label>'+
                '              <div class="control-input">'+
                '                  <input type="text" class="form-control" id="indication" value="{{indication}}" {{if status=="update"}}readonly{{/if}}>'+
                '              </div>'+
                '          </div>'+
                 '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label">不良反应</label>'+
                '              <div class="control-input">'+
                '                  <textarea id="adverseReaction" class="form-control" {{if status=="update"}}readonly{{/if}}>{{adverse_reaction}}</textarea>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label">禁忌</label>'+
                '              <div class="control-input">'+
                '                  <textarea id="taboo" class="form-control" {{if status=="update"}}readonly{{/if}}>{{taboo}}</textarea>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label">注意事项</label>'+
                '              <div class="control-input">'+
                '                  <textarea id="considerations" class="form-control" {{if status=="update"}}readonly{{/if}}>{{considerations}}</textarea>' +
                '              </div>'+
                '          </div>'+
                '       </div>'+
                '       <div class="btn-box">'+
                '           <div class="resetBtn" id="reset">重置</div>' +
                '           <div class="editMedicBtn" id="add" data-id="{{id}}" data-medicineId="{{medicine_id}}">{{if status=="add"}}添加{{else if status=="update"}}保存{{/if}}</div>' +
                '       </div>'+
                '   </div>'+
                '</script>';
    }
    var smallClass = function() {
        return  '<script id="tpl_specialtyBags_smallClass" type="text/html">' +
                '   {{each smallClass as value i}}' +
                '       <option value="{{value.id}}">{{value.catalog_name}}</option>' +
                '   {{/each}}' +
                '</script>';
    }
    var stopSchemeReason = function(){
    	return  '<script id="tpl_specialtyBags_stopSchemeReason" type="text/html">' +
                '	<div class="stopSchemeReason-modal clearfix">'+
                '		<input name="expireReason" type="text" class="form-control">'+
                '		<button type="button" class="sure btn btn-primary pull-right">确定</button>'+
                '		<button type="button" class="cancel btn btn-default pull-right">取消</button>'+
                '	</div>'+
                '</script>';
    }
    var medicationRecord = function(){
    	return  '<script id="tpl_specialtyBags_medicationRecord" type="text/html">' +
                '	<div class="medicationRecord-modal">'+
				'		<div class="form-inline text-center">'+
				'		  	<div class="form-group">'+
				'		    	<label>{{data.medicineName}}</label>'+
				'		    	<input type="text" class="form-control" value="{{data.value}}">'+
				'				<span>{{data.medUnitName}}</span>'+
				'		  	</div>'+
				'		</div>'+
                '		<div class="text-center">'+
                '			<button type="button" class="drugNotUse btn btn-default">未用药</button>'+
                '			<button type="button" class="drugUsed btn btn-default">已用药</button>'+
                '		</div>'+
                '	</div>'+
                '</script>';
    }
    var remark = function(){
    	return  '<script id="tpl_specialtyBags_remark" type="text/html">' +
                '	<div class="remark-modal">'+
                '		<div class="remark-tabs clearfix">'+
                '			<span data-code="D0001" data-eventCode="C0002.0201.01">手动输入</span>'+
                '			<span data-code="D0002" data-eventCode="C0002.0201.03">并发症</span>'+
                '			<span data-code="D0003" data-eventCode="C0002.0506.01">特殊治疗</span>'+
                '			<span data-code="D0004" data-eventCode="C0002.0201.04">事件</span>'+
                '			<span data-code="D0005" data-eventCode="C0002.0302.01">警示</span>'+
                '		</div>'+
                '		<div id="remarkContent" class="remark-content"></div>'+
                '		<div class="remork-btnbox">'+
                '			<button type="button" class="cancel btn btn-default">取消</button>'+
                '			<button type="button" class="save btn btn-default">确定</button>'+
                '		</div>'+
                '	</div>'+
                '</script>';
    }
    var statistics = function(){
    	return  '<script id="tpl_specialtyBags_statistics" type="text/html">' +
    			'	<span class="legend-item">'+
				'		<span class="legend-name">默认计划：</span>'+
				'		<i>{{defaultPlanNum}}</i>'+
				'	</span>'+
				'	<span class="legend-item">'+
				'		<span class="legend-name">修改计划：</span>'+
				'		<i class="style-02">{{updatePlanNum}}</i>'+
				'	</span>'+
				'	<span class="legend-item">'+
				'		<span class="legend-name">完成用药：</span>'+
				'		<i class="style-03">{{finishRecordNum}}</i>'+
				'	</span>'+
				'	<span class="legend-item">'+
				'		<span class="legend-name">遗漏用药：</span>'+
				'		<i class="style-04">{{lostRecordNum}}</i>'+
				'	</span>'+
				'	<span class="legend-item">'+
				'		<span class="legend-name">修改记录：</span>'+
				'		<i class="style-05">{{updateRecordNum}}</i>'+
				'	</span>'+
				'	<span class="legend-item">'+
				'		<span class="legend-name">医生登记：</span>'+
				'		<i class="fa fa-caret-up"></i>'+
				'	</span>'+
				'	<span class="legend-item">'+
				'		<span class="legend-name">患者上报：</span>'+
				'		<i class="fa fa-circle style-07"></i>'+
				'	</span>'+
				'	<span class="legend-item">'+
				'		<span class="legend-name">已被删除：</span>'+
				'		<i class="style-08">X &nbsp;</i>'+
				'	</span>'+
                '</script>';
    }
    var selectCallBack = function() {
        return  '<script id="tpl_specialtyBags_select" type="text/html">' +
                '   {{each list as value i}}' +
                '         <p class="query_item" id="{{value.id}}">{{value.medicine_name}} {{value.medicine_dose}}{{value.med_unit_name}} {{value.frequency_day}}天{{value.frequency_time}}次 {{if value.calcu_method=="01"}}体表面积{{else if value.calcu_method=="02"}}体重{{/if}} {{if value.medicine_type=="1"}}正常用药{{else if value.medicine_type=="2"}}补充用药{{/if}} {{value.parentCatalogName}}</p>' +
                '   {{/each}}' +
                '</script>';
    }

	return tpl;
});